package com.fs.base.excel;

import java.util.ArrayList;
import java.util.List;

/**
 * Excel配置
 * <p>Created by Raofeicheng on 2016-11-9.</p>
 * @author Raofeicheng
 * @version 1.0
 */
public class ExcelOptions {

	private boolean writeComment;
	private String filename;
	private List<List<HeaderColumn>> headers = new ArrayList<List<HeaderColumn>>();
	private List<HeaderColumn> realHeaders = new ArrayList<HeaderColumn>();
	private List<Object> data = new ArrayList<Object>();
	private boolean local = false;

	/**
	 * 获取是否输出表头批注
	 */
	public boolean isWriteComment() {
		return writeComment;
	}

	/**
	 * 设置是否输出表头批注
	 */
	public void setWriteComment(boolean writeComment) {
		this.writeComment = writeComment;
	}

	/**
	 * 获取Excel文件名
	 */
	public String getFilename() {
		return filename;
	}

	/**
	 * 设置Excel文件名
	 */
	public void setFilename(String filename) {
		this.filename = filename;
	}

	/**
	 * 获取Excel表头设置
	 */
	public List<List<HeaderColumn>> getHeaders() {
		return headers;
	}

	/**
	 * 设置Excel表头设置
	 */
	public void setHeaders(List<List<HeaderColumn>> headers) {
		this.headers = headers;
	}

	public List<HeaderColumn> getRealHeaders() {
		return realHeaders;
	}

	public void setRealHeaders(List<HeaderColumn> realHeaders) {
		this.realHeaders = realHeaders;
	}

	/**
	 * 获取Excel数据
	 */
	public List<Object> getData() {
		return data;
	}

	/**
	 * 设置Excel数据
	 */
	public void setData(List<Object> data) {
		this.data = data;
	}

	public boolean isLocal() {
		return local;
	}

	public void setLocal(boolean local) {
		this.local = local;
	}
}
